#ifndef FORM_RECOVER_H
#define FORM_RECOVER_H

#include "qtextedit.h"
#include <QWidget>

namespace Ui {
class Form_recover;
}

class Form_recover : public QWidget
{
    Q_OBJECT
    friend class MainWindow;
public:
    explicit Form_recover(QWidget *parent = nullptr);
    ~Form_recover();
    void setTextEdit(QTextEdit *textEdit){this->textEdit=textEdit;};
private slots:
    void closeEvent(QCloseEvent *event) override;

    void on_pushButton_setNum_clicked();

    void on_tableWidget_selects_cellClicked(int row, int column);

    void on_pushButton_recover_recover_clicked();

    void on_tableWidget_selects_customContextMenuRequested(const QPoint &pos);

signals:
    void closeSignal();
private:
    Ui::Form_recover *ui;
    int cnt=0;//子秘密数量
    int setNum=-1;//授权集合编号
    QString pubInfoPos="";//公共信息
    QTextEdit *textEdit=nullptr;//交流界面
    std::function<void(std::string)> fun;//打印函数
};

#endif // FORM_RECOVER_H
